package com.zzy.database.mapper;

import com.zzy.database.pojo.Employee;
import com.zzy.database.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;
@Mapper
public interface EmployeeMapper {
    int insertEmployee(@Param("id") String id, @Param("username") String username);
    String findEmployeeIdByUsername(@Param("username") String username);

    void addEmployee(Employee employee);
    void updateEmployee(Employee employee);
    void assignEmployeeToBranch(String employeeId, String branchId);
    List<Employee> getEmployeesByBranchId(String branchId);

    List<Employee> getAllEmployees();

    void deleteEmployeeById(String employeeId);
    void complete(Employee employee);

}




